package com.ruoyi.huoyun.person.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.huoyun.person.mapper.ConsignorPersonInfoMapper;
import com.ruoyi.huoyun.person.domain.ConsignorPersonInfo;
import com.ruoyi.huoyun.person.service.IConsignorPersonInfoService;

/**
 * 货主个人信息Service业务层处理
 * 
 * @author mj
 * @date 2021-11-29
 */
@Service
public class ConsignorPersonInfoServiceImpl implements IConsignorPersonInfoService 
{
    @Autowired
    private ConsignorPersonInfoMapper consignorPersonInfoMapper;

    /**
     * 查询货主个人信息
     * 
     * @param id 货主个人信息主键
     * @return 货主个人信息
     */
    @Override
    public ConsignorPersonInfo selectConsignorPersonInfoById(Integer id)
    {
        return consignorPersonInfoMapper.selectConsignorPersonInfoById(id);
    }

    /**
     * 查询货主个人信息列表
     * 
     * @param consignorPersonInfo 货主个人信息
     * @return 货主个人信息
     */
    @Override
    public List<ConsignorPersonInfo> selectConsignorPersonInfoList(ConsignorPersonInfo consignorPersonInfo)
    {
        return consignorPersonInfoMapper.selectConsignorPersonInfoList(consignorPersonInfo);
    }

    /**
     * 新增货主个人信息
     * 
     * @param consignorPersonInfo 货主个人信息
     * @return 结果
     */
    @Override
    public int insertConsignorPersonInfo(ConsignorPersonInfo consignorPersonInfo)
    {
        return consignorPersonInfoMapper.insertConsignorPersonInfo(consignorPersonInfo);
    }

    /**
     * 修改货主个人信息
     * 
     * @param consignorPersonInfo 货主个人信息
     * @return 结果
     */
    @Override
    public int updateConsignorPersonInfo(ConsignorPersonInfo consignorPersonInfo)
    {
        return consignorPersonInfoMapper.updateConsignorPersonInfo(consignorPersonInfo);
    }

    /**
     * 批量删除货主个人信息
     * 
     * @param ids 需要删除的货主个人信息主键
     * @return 结果
     */
    @Override
    public int deleteConsignorPersonInfoByIds(Integer[] ids)
    {
        return consignorPersonInfoMapper.deleteConsignorPersonInfoByIds(ids);
    }

    /**
     * 删除货主个人信息信息
     * 
     * @param id 货主个人信息主键
     * @return 结果
     */
    @Override
    public int deleteConsignorPersonInfoById(Integer id)
    {
        return consignorPersonInfoMapper.deleteConsignorPersonInfoById(id);
    }
}
